#include<bits/stdc++.h>
using namespace std;

int main() {
	string s;
	getline(cin, s);
	int t1 = 0, t2 = 0;
	for(int i = 0; i < s.size(); i ++ ) {
		if(s[i] == ':' && s[i + 1] == '-') {
			if(s[i + 2] == ')') {
				t1 ++ ;
			} else if(s[i + 2] == '(') {
				t2 ++ ;
			}
		}
	}
	if(t1 == 0 && t2 == 0 ) {
		cout << "None" << endl;
	} else if(t1 > t2) {
		cout << "Happy" << endl;
	} else if(t1 == t2) {
		cout << "Just so so" << endl;
	} else if(t1 < t2) {
		cout << "Sad" << endl;
	}
	return 0;
}

